-- GENERATED SPELL FOR [Shadowhorn Stag] --


function spell0_3817(pUnit, Event) --@Shadowhorn Charge,Self--
pUnit:FullCastSpellOnTarget(6921,pUnit)
pUnit:RegisterEvent('Sorts_3817', 6320, 1)
end

function Sorts_3817(pUnit, Event)
local choix_sorts_3817 = math.random(0, 0)
if choix_sorts_3817 == 0 then
pUnit:RegisterEvent('spell0_3817', 1, 1)
end
end

function mob3817_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3817', math.random(1500, 3000), 1)
end

function mob3817_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3817_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3817_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3817, 1, 'mob3817_Action')
RegisterUnitEvent(3817, 2, 'mob3817_Leave')
RegisterUnitEvent(3817, 3, 'mob3817_Kill')
RegisterUnitEvent(3817, 4, 'mob3817_Die')
